<template>
  <div class="tab">
  <van-tabbar
  route
  inactive-color="#333"
  active-color="#ed2f6a">
      <van-tabbar-item
      to="/home"
       icon-prefix="icon" icon="index-copy">首页</van-tabbar-item>
      <van-tabbar-item
      to="/cate"
       icon-prefix="icon" icon="fenlei">分类</van-tabbar-item>
      <van-tabbar-item
      to="/cart"
       icon-prefix="icon" :badge="$store.state.cart.items.length || ''" icon="shopping-cart">购物车</van-tabbar-item>
      <van-tabbar-item
      to="/user"
       icon-prefix="icon" icon="wode-copy">个人中心</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.tab{
  position: fixed;
  bottom: 0;
  left: 0;
}
/deep/.icon{
  font-size: 20px;
}
</style>
